﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:CounterStrikeSourceAimbot_WpfControls="clr-namespace:CounterStrikeSourceAimbot_WpfControls;assembly=CounterStrikeSourceAimbot.WpfControls"
    x:Class="CounterStrikeSourceAimbot.MapUi.MainWindow"
    Title="MainWindow" Height="586" Width="695" Top="0" Left="0" Topmost="True" AllowsTransparency="True" Background="Transparent" WindowStyle="None" MouseDown="Window_MouseDown" >
    <Window.Resources>
        <ContextMenu x:Key="MyContextMenu">
            <MenuItem Header="Exit"  Click="ExitMenuItem_OnClick"/>
            <MenuItem Header="Source Code/Help/About"  Click="HelpMenuItem_OnClick"/>
        </ContextMenu>
    </Window.Resources>
    <Grid ContextMenu="{StaticResource MyContextMenu}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition />
        </Grid.RowDefinitions>

        <!-- -->
        <Viewbox Grid.ColumnSpan="3" Margin="0" Grid.Row="1">
            <!-- -->

            <CounterStrikeSourceAimbot_WpfControls:MapControl Players="{Binding AvailablePlayers}" WorldData="{Binding WorldData}" AlfaX="0.242" BetaX="585" AlfaY="-0.242" BetaY="800" />
            <!-- THIS IS COMPATIBLE WITH de_aztec! <CounterStrikeSourceAimbot_WpfControls:MapControl Players="{Binding AvailablePlayers}" AlfaX="0.1663" BetaX="520.8" AlfaY="-0.1655" BetaY="252.2" /> -->

            <!-- -->
        </Viewbox>
        <!-- -->
        <TextBlock Margin="5,5,4.634,5" TextWrapping="Wrap" Text="Your Name (Player Name)"/>
        <TextBox Grid.Column="1" Margin="5.366,5,4.88,5" TextWrapping="Wrap" Text="{Binding PlayerName}" Background="#0E000000" />
        <StackPanel Grid.Column="2" Margin="5,5,7,5" Orientation="Horizontal">
            <Button Content="Start / Restart" HorizontalAlignment="Left" Click="Button_Click" Background="#0A000000" ToolTip="Start the Radar" />
            <Button Content="Highlight" HorizontalAlignment="Left" Click="ButtonHl_Click" Background="#0A000000" ToolTip="Highlight a user (highlighted users will be shown bigger that others)" />
            <Button Content="Bind Aimbot" HorizontalAlignment="Left" Click="ButtonAb_Click" Background="#0A000000" ToolTip="In gameplay press Alt to focus on player" />
            <CheckBox Content="LocalServer?" HorizontalAlignment="Left" IsChecked="{Binding IsLocalServer}" Background="#0A000000" ToolTip="Is the server that CSS connects to on this computer?" />
            <CheckBox Content="Aim on highlights?" HorizontalAlignment="Left" IsChecked="{Binding AutoAimOnHighlightsOnly}" Background="#0A000000" ToolTip="Aimbot only focus on highlighted users" />
        </StackPanel>

    </Grid>
</Window>